package com.chengxiaoxiao.domain;

import java.io.Serializable;
import java.util.Date;

public class Borrow implements Serializable {
    private long id;
    private Date subTime;
    private long userId;
    private long bookId;
    private Date expireTime;
    private int isDeory;
    private int isReturn;

    private Users user;
    private Books book;

    public Borrow() {
    }

    public Borrow(long id, Date subTime, long usersId, long bookId, Date expireTime, int isReturn, Users user, Books book) {
        this.id = id;
        this.subTime = subTime;
        this.userId = usersId;
        this.bookId = bookId;
        this.expireTime = expireTime;
        this.isReturn = isReturn;
        this.user = user;
        this.book = book;
    }

    public long getId() {
        return id;
    }


    public int getIsDeory() {
        return isDeory;
    }

    public void setIsDeory(int isDeory) {
        this.isDeory = isDeory;
    }

    public void setId(long id) {
        this.id = id;
    }

    public Date getSubTime() {
        return subTime;
    }

    public void setSubTime(Date subTime) {
        this.subTime = subTime;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getBookId() {
        return bookId;
    }

    public void setBookId(long bookId) {
        this.bookId = bookId;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    public Users getUser() {
        return user;
    }

    public void setUser(Users user) {
        this.user = user;
    }

    public Books getBook() {
        return book;
    }

    public void setBook(Books book) {
        this.book = book;
    }

    public int getIsReturn() {
        return isReturn;
    }

    public void setIsReturn(int isReturn) {
        this.isReturn = isReturn;
    }
}
